﻿@using PNProject
@using System.Globalization
@{
    
    bool lang = CultureInfo.CurrentUICulture.Name == "vi-VN" ? true : false;
    string langText = lang ? "" : "en-US/";
    string hi = lang ? "Xin chào" : "Welcome";
    string off = lang ? "Thoát" : "Log Off";
    string dn = lang ? "Đăng nhập" : "Login";
    string dk = lang ? "Đăng ký" : "Register";
}
<style>
.logofflink
{
    color:#254DA5;
}
.logofflink:visited
{
    color:#254DA5;
}

</style>
@if(Request.IsAuthenticated) {
    <li style="float:left;">
    <text>@hi <a href="/@string.Concat(langText, "Member/profile")"><strong style="color:#254DA5;">@User.Identity.Name</strong></a>!
    [ @Html.ActionLink(off, "LogOff", "Member",null, new { @class = "logofflink" }) ]</text>
    </li>
}
else
{
    <li><a href="/@string.Concat(langText, "Member/register")" class="dk" style="color:White;">@dk</a></li>
                    <li><p>|</p></li>
    <li><a href="/@string.Concat(langText, "Member/login")" class="dk" style="color:White;">@dn</a></li>

}
